package com.zhongli.devplatform.mapper.user;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhongli.devplatform.dto.student.StudyReportDetailsDTO;
import com.zhongli.devplatform.po.user.ReadUserPO;
import com.zhongli.devplatform.query.student.StudentQuery;
import com.zhongli.devplatform.vo.student.OperationStudentVO;
import com.zhongli.devplatform.vo.student.StudentVO;
import com.zhongli.devplatform.vo.student.UserAndClassInfoVO;
import com.zhongli.devplatform.vo.teacher.SchoolTeacherVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author WuXiCheng
 * @version 1.0
 * @date 2020/7/23 10:12
 */
@Mapper
public interface ReadUserMapper extends BaseMapper<ReadUserPO> {


    List<StudentVO> findLearnList(@Param("query") StudentQuery query);

    List<UserAndClassInfoVO> getAllStudentByCurrentTeach(StudyReportDetailsDTO studyReportDetailsDTO);

    List<OperationStudentVO> studentListByClazzId(@Param("query") StudentQuery query);

    List<Integer> getAlllearningProgressBySubjectId(@Param("studentId") Integer studentId, @Param("subjectId") Integer subjectId);

}
